package com.zzh.net.test;

import com.zzh.net.Net;

public class BaseDemo {
    private DemoServer demoServer;

    protected DemoServer getDemoServerInstace(){
        if (demoServer == null) {
            synchronized (Demo.class) {
                if (demoServer == null) {
                    demoServer = Net.getNetRetrofitManager().newServer(DemoServer.class);
                }
            }
        }
        return demoServer;
    }
}
